<div class="left_menu2">
	<div class="left_menuBox2">
		<div class="left_menuBox_top"></div>
		<table width="240" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td height="30" align="left" valign="middle"><img src="images/title04.png" width="221" height="23" alt="會員資訊" title="會員資訊" /></td>
			</tr>
			<tr>
				<td height="110" align="center" valign="middle"><div class="box3"><img src="<?=Yii::app()->params['avatarPath'].'/'.$model->avatar?>" alt="" width="100" height="100" /></div>
					<div class="box2"></div>
					<div class="box2">鴻運點數： <span class="red"><?=$model->hongyun?></span></div>
					<div class="box2">購物金： <span class="red"><?=$model->coin?></span></div>
					<div class="box"></div>
					<div class="box"></div>
					<div class="menuBOX_box"></div></td>
			</tr>
			<tr>
				<td height="50" align="center" valign="middle"><a href="#" target="_self"><img src="images/class/status.png" alt="會員" title="會員" width="16" height="16" border="0" align="absmiddle" /><span class="id2"><?=$model->username?></span></a></td>
			</tr>
			<tr>
				<td height="25" align="center" valign="middle"><div class="button"><a href="<?=Yii::app()->createUrl('site/center')?>" title="會員狀態" target="_self"><span class="id3">會員狀態</span></a></div></td>
			</tr>
			<tr>
				<td height="10" align="center" valign="middle">&nbsp;</td>
			</tr>			
			<tr>
				<td height="23" align="center" valign="middle" >距離下次活動參與時間</td>
			</tr>
			<tr>
				<td height="50" align="center" valign="middle" class="red"><span class="clock"><img src="images/class/Clock.png" alt="時間" width="32" height="32" border="0" align="absmiddle" /><a href="###" title="距離下次抽獎時間" >&nbsp;&nbsp;<span id="time_intervalUser">00:00:00</span></a></span></td>
			</tr>
			<?php
			if($time>0){
			?>
			<script>
			$(document).ready(function() {
				onTimer('intervalUser',<?=$time?>,changeShowTimeUser,onTimeEndUser);
			});
			 
			// 该函数用于显示倒计时
			function changeShowTimeUser(id,time) {
				/* 该函数内编写显示倒计时的语句 */  
				$(id).html(time);    
			}
			//倒計時結束的時候執行的函數
			function onTimeEndUser(id){
				window.location.reload(true);
			}
			</script>
			<?php
			}
			?>
			<tr>
				<td height="25" align="center" valign="top" class="boxWhite"><ul>
						<li><a href="<?=Yii::app()->createUrl('site/track')?>" title="追蹤中的活動" target="_self"><span class="id2">追蹤中的活動</span></a></li>
						<li><a href="<?=Yii::app()->createUrl('site/activity')?>" title="活動參與紀錄" target="_self"><span class="id2">活動參與紀錄</span></a></li>
						<li><a href="<?=Yii::app()->createUrl('site/stock')?>" title="儲物區" target="_self"><span class="id2">儲物區</span></a></li>
						<li><a href="<?=Yii::app()->createUrl('site/order')?>" title="訂單紀錄" target="_self"><span class="id2">訂單查詢</span></a></li>
						<li><a href="<?=Yii::app()->createUrl('site/credit')?>" title="點數 &amp; 購物金明細" target="_self"><span class="id2">點數 & 購物金明細</span></a></li>
						<li><a href="<?=Yii::app()->createUrl('site/invite')?>" title="推薦好友" target="_self"><span class="id2">推薦好友</span></a></li>
						<li><a href="<?=Yii::app()->createUrl('site/userInfo')?>" title="資料維護" target="_self"><span class="id2">資料維護</span></a></li>
					</ul></td>
			</tr>
		</table>
		<div class="left_menuBox_bottom"></div>
	</div>
</div>
